package com.zbb.user.model.po;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 信誉表
 * </p>
 *
 * @author itcast
 */
@Data
@TableName("user_credit")
public class Credit implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String id;

    /**
     * 用户id
     */
    private String userId;

    /**
     * 评论用户cuid
     */
    private String commentUserId;

    /**
     * 订单快照id
     */
    private String orderSnapshotId;

    /**
     * 评论内容
     */
    private String comment;

    /**
     * 评分
     */
    private Float grade;
    /**
     * 评价前信誉分
     */
    private Float creditScore;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;



    public Credit(String id, String userId, String commentUserId, String orderSnapshotId, String comment, Float grade, Float creditScore, LocalDateTime createTime) {
        this.id = id;
        this.userId = userId;
        this.commentUserId = commentUserId;
        this.orderSnapshotId = orderSnapshotId;
        this.comment = comment;
        this.grade = grade;
        this.creditScore = creditScore;
        this.createTime = createTime;
    }

}
